Xbasic

A5_SQL_BatchImportTables Function

Syntax

C a5_SQL_BatchImportTables(C cs ,C tableList ,C folder ,C prefix ,L overwriteWithoutPrompting [,L addTablesToDatabase ])

Arguments

cs

The connection string required to connect to the back-end database.

tableList

A CR-LF delimited list of tables on the back-end database.

folder

The directory into which to save the new tables.

prefix

A character string to prefix to each of the source table names when defining the destination table names.

overwriteWithoutPrompting

Logical. Indicates whether the user needs to approve overwriting an existing table of the same name. .T. = Do no prompt the user. .F. = Ask the user for permission to overwrite an existing table

addTablesToDatabase

Logical. Optional. Default = .T. Only meaningful if Flag_Import is .T. . .T. = Add new table. .F. = Do not add new table.

Description

The A5_SQL_BatchImportTables() function is a wrapper for A5_BatchPassiveLinkCreate()that imports standard Alpha Anywhere .DBF tables from a back-end database.

Example

dim cs as C
cs = "{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}"
? a5_SQL_BatchImportTables(cs, "customer", "c:\temp", "temp_", .t., .f.)

Limitations

Desktop applications only.

See Also